<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../common/taglibs.jsp" %>

<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<%@ include file="../common/btcss.jsp" %>
	
	<link rel="stylesheet" href="${ctx }/static/lib/datatables/1.10.9/css/jquery.dataTables.min.css">
	
	<title>资源白名单配置管理系统</title>
	
	<style>
		.icon-cancel{
			background:url('${ctx}/static/images/cancel.png') no-repeat center center;
		}
	</style>
</head>
<body>
	<ol class="breadcrumb navbar-fixed-top">
        <li><a href="${ctx }/config/welcome">首页</a></li>
        <li><a href="${ctx }/monitor/monitor">IPCC监控</a></li>
    </ol>
    
    <div class="container" style="margin-top: 40px; margin-bottom: 10px;">
    	<ul class="list-group">
		  <li class="list-group-item">当前星期几：<c:out value="${weekCN }"></c:out></li>
		  <li class="list-group-item">当前小时数：<c:out value="${currHour }"></c:out></li>
		</ul>
    </div>
    <div class="container">
   	    <table class="table table-striped table-bordered example">
				<thead>
					<tr>
						<th>编号</th>
						<th>渠道</th>
						<th>资源</th>
						<th>IPCC</th>
						<th>状态</th>
					</tr>
				</thead>
		</table>
    </div>
    
	<%@ include file="../common/btjs.jsp" %>
	
	<script src="${ctx }/static/lib/datatables/1.10.9/js/jquery.dataTables.js"></script>
	<script src="${ctx }/static/lib/datatables/1.10.9/js/dataTables.bootstrap.js"></script>
	
	<script src="${ctx }/static/js/monitor.js"></script>
	<script type="text/javascript">		
		$(function(){
			$('.example tbody').delegate('tr', 'mouseover', function () {
				$(this).toggleClass('selected');
		    });
			
			$('.example tbody').delegate('tr', 'mouseout', function () {
				$(this).toggleClass('selected');
		    });
		});

        function sleep(numberMillis) {
            var now = new Date();
            var exitTime = now.getTime() + numberMillis;
            while (true) {
                now = new Date();
                if (now.getTime() > exitTime)
                    return;
            }
        }

        function goFlight(id) {
			window.location.href = 'flight?id=' + id + '&dt=' + new Date().getTime();
    	}
	</script>
</body>
</html>